package com.jy.entity;

/**
 * 留言表
 */
public class Reply {
    private int rid;
    private int uid;          //用户id
    private int pid;
    private int type;         //回复内容类型（1.回复内容，2.回复内容的回复内容）
    private int cid;          //评论内容id
    private String content;   //回复内容
    private String time;      //回复时间

    public Reply() {
    }

    public Reply(int uid, int pid, int type, int cid, String content, String time) {
        this.uid = uid;
        this.pid = pid;
        this.type = type;
        this.cid = cid;
        this.content = content;
        this.time = time;
    }

    public int getRid() {
        return rid;
    }

    public void setRid(int rid) {
        this.rid = rid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "\nReply{" +
                "rid=" + rid +
                ", uid=" + uid +
                ", pid=" + pid +
                ", type=" + type +
                ", cid=" + cid +
                ", content='" + content + '\'' +
                ", time='" + time + '\'' +
                '}';
    }
}
